package com.xhsj.user.hr.userInfo.mapper;

import com.xhsj.user.hr.userInfo.query.UserDetailFamilyQuery;
import org.apache.ibatis.annotations.Mapper;
import com.xhsj.user.hr.userInfo.entity.TbGlobalUserFamily;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 用户_家庭情况 Mapper 接口
 * </p>
 *
 * @author liuqinghua
 * @since 2020-09-08
 */
@Mapper
public interface TbGlobalUserFamilyMapper extends BaseMapper<TbGlobalUserFamily> {

    /**
     * 用户家庭信息
     * @author liuqinghua
     * @date Sep 8, 2020 1:27:22 PM
     */
    List<UserDetailFamilyQuery> getFamilyList(@Param("userId") Long userId);

     /**
     * 用户家庭成员
     * @author liuqinghua
     * @date Sep 8, 2020 1:27:22 PM
     */
    int deleteDataByUserId(@Param("userId")Long userId);
}
